#!/bin/bash

curl -sL https://gitee.com/moonnow/sh/raw/master/echo/echo-35.sh | bash -s 'crud >>> 开始打包'

cd /deploy/crud
git checkout .
sleep 1
git pull
sleep 1

cd /deploy/crud/docs/.vuepress
rm -rf dist.tar.gz
rm -rf dist
sleep 1

cd /deploy/crud
yarn build
sleep 1

cd /deploy/crud/docs/.vuepress
tar -zcvf dist.tar.gz dist
sleep 1

curl -sL https://gitee.com/moonnow/sh/raw/master/echo/echo-32.sh | bash -s 'crud >>> 打包完成'
